package com.medical.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 住院表
 */
@Data
@TableName(value = "mar_be_hospitalized")
public class BeHospitalized {
    /**
     * 住院号 id
     */
    @TableId(value = "hospitalized_id", type = IdType.AUTO)
    private Integer hospitalizedId;

    /**
     * 患者id
     */
    @TableField(value = "patient_id")
    private Long patientId;

    /**
     * 入院时间
     */
    @TableField(value = "into_hospitalized")
    private Date intoHospitalized;

    /**
     * 出院时间
     */
    @TableField(value = "out_hospitalized")
    private Date outHospitalized;

    /**
     * 院区
     */
    @TableField(value = "hospitalized_area")
    private String hospitalizedArea;

    /**
     * 住院科室
     */
    @TableField(value = "hospitalized_department")
    private String hospitalizedDepartment;

    /**
     * 开单时间
     */
    @TableField(value = "creat_date")
    private Date creatDate;

    /**
     * 开单医生
     */
    @TableField(value = "creat_doctor")
    private String creatDoctor;

    /**
     * 住院状态 0未出院 1已出院 默认0
     */
    @TableField(value = "hospitalized_state")
    private Integer hospitalizedState;

    /**
     * 订单id
     */
    @TableField(value = "indent_id")
    private Long indentId;

    public static final String COL_HOSPITALIZED_ID = "hospitalized_id";

    public static final String COL_PATIENT_ID = "patient_id";

    public static final String COL_INTO_HOSPITALIZED = "into_hospitalized";

    public static final String COL_OUT_HOSPITALIZED = "out_hospitalized";

    public static final String COL_HOSPITALIZED_AREA = "hospitalized_area";

    public static final String COL_HOSPITALIZED_DEPARTMENT = "hospitalized_department";

    public static final String COL_CREAT_DATE = "creat_date";

    public static final String COL_CREAT_DOCTOR = "creat_doctor";

    public static final String COL_HOSPITALIZED_STATE = "hospitalized_state";

    public static final String COL_INDENT_ID = "indent_id";
}